<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>
<!-- The HTML 4.01 Transitional DOCTYPE declaration--><!-- above set at the top of the file will set     --><!-- the browser's rendering engine into           --><!-- "Quirks Mode". Replacing this declaration     --><!-- with a "Standards Mode" doctype is supported, --><!-- but may lead to some differences in layout.   -->
  
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>HerePlus App Engine</title>

  
</head><body>
<h1>HerePlus App Engine</h1>

<h2>UserProfile 操作</h2>

目前沒有處理使用者 上線與離線 的狀態改變<br>

<br>

<table style="width: 80%;" border="2">

  <tbody>
    <tr>
      <td style="width: 88px;">方法</td>
      <td style="width: 257px;">REST</td>
      <td style="width: 421px;"><br>
      </td>
    </tr>
    <tr>
      <td style="width: 88px;">後台使用</td>
      <td style="width: 257px;"><a href="userform.html">HTML: Create
One User</a><br>
      </td>
      <td style="width: 421px;"><br>
      </td>
    </tr>
    <tr>
      <td style="width: 88px;">後台使用</td>
      <td style="width: 257px;"><a href="userview.jsp?id=polarlab@gmail.com">HTML :
View Single User by ID</a><br>
      </td>
      <td style="width: 421px;"><br>
      </td>
    </tr>
    <tr>
      <td style="width: 88px;">GET</td>
      <td style="width: 257px;"><a href="user?action=check&amp;id=polarlab@gmail.com">Check
if User is existed</a><br>
      </td>
      <td style="width: 421px;"> user?action=check&amp;id=polarlab@gmail.com<br>
如果帳號存在回傳：{"result":"fail"} <br>
如果帳號不存在回傳：{"result":"pass"} </td>
    </tr>
    <tr>
<td style="width: 88px;">GET</td><td style="width: 257px;"><a href="user?action=view&amp;id=polarlab@gmail.com">View
Single User by ID</a><br>
      </td><td style="width: 421px;"> user?action=view&amp;id=polarlab@gmail.com<br>
</td></tr>
<tr>
      <td style="width: 88px;">POST</td>
      <td style="width: 257px;">Create User<br>
      </td>
      <td style="width: 421px;"> action = "create"; <br>
      <ol>
        <li>id: (String)<br>
 </li>
        <li>name: (String) </li>
        <li>gender: (String) </li>
        <li>fbid: (String) </li>
      </ol>
</td>
    </tr>
    <tr>
<td style="width: 88px;">POST</td><td style="width: 257px;">Update GPS Location by ID<br>
      </td><td style="width: 421px;"> action="updateloc" <br>
<ol><li>
id: (String)<br>
 </li><li>
x: (double)<br>
 </li><li>
y: (double)</li></ol>

      <br>
      </td></tr>

    <tr>
<td style="width: 88px;">POST</td><td style="width: 257px;">Update Scan Range by ID<br>
      </td><td style="width: 421px;"> action="updaterange" <br>
<ol><li>
id: (String)<br>
 </li><li>
range: (int)<br>
 </li></ol>

      <br>
      </td></tr>

  </tbody>
</table>

<br>

<h2>EventInfo 操作</h2>

<br>

<table style="width: 80%;" border="2">

<tbody>
<tr>
<td style="width: 88px;">方法</td>
<td style="width: 257px;">REST</td>
<td style="width: 421px;"><br>
</td>
</tr>
<tr>
<td style="width: 88px;">後台使用</td>
<td style="width: 257px;"><a href="eventform.jsp">HTML: Create Event</a><br>
</td>
<td style="width: 421px;"><br>
</td>
</tr>


<tr>
<td style="width: 88px;">POST</td>
<td style="width: 257px;"><a href="/event/create">Create Event</a><br>
</td>
<td style="width: 421px;">/event/create <br>
POST method + multipart/form-data<br>
      <ol>
        <li>uid : (String) 使用者 email 帳號 <br>
        </li>
        <li style="color: rgb(51, 51, 255);">type : (int) event type</li>
        <li>name : (String) event name<br>
        </li>
        <li>brief : (String)<br>
        </li>
        <li>deadline : (String)<br>
        </li>
        <li>limitCount : (int)</li>
        <li>place : (String) event 地點<br>
        </li>
        <li>x : (double)</li>
        <li>y : (double)<br>
        </li>
        <li>user_x : (double)</li>
        <li>user_y : (double)<br>
        </li>
        <li>eventPhoto : (file)</li>
      </ol>
event type value<br>
      <ul>
        <li>0 : topic event</li>
        <li>1 : meet event</li>
        <li>2 : ask event<br>
        </li>
      </ul>
如果建立成功：回傳 eid 的值<br>
      <br>
      <br>

 </td>
</tr>
    <tr>
      <td style="vertical-align: top;">GET<br>
      </td>
      <td style="vertical-align: top;"><a href="event?action=scan&amp;uid=polarlab@gmail.com&amp;range=2">Scan Event</a><br>
      </td>
      <td style="vertical-align: top;"><br>
      <ol>
        <li>Near<br>
event?action=scan&amp;uid=polarlab@gmail.com&amp;range=2&amp;type =near<br>
        </li>
        <li>My Create<br>
event?action=scan&amp;uid=polarlab@gmail.com&amp;type=create<br>
        </li>
        <li>My Plus<br>
event?action=scan&amp;uid=polarlab@gmail.com&amp;type=plus<br>
        </li>
        <li>Past<br>
event?action=scan&amp;uid=polarlab@gmail.com&amp;range=2&amp;type =past<br>
        </li>
      </ol>
range 是以公尺為單位<br>
      </td>
    </tr>
<tr>
<td style="width: 88px;">GET</td>
<td style="width: 257px;"><a href="event?action=view&amp;id=11">View
Single Event by ID</a><br>
</td>
<td style="width: 421px;">event?action=view&amp;id=11<br>
</td>
</tr>
<tr>
<td style="width: 88px;">POST</td>
<td style="width: 257px;"><a href="user">Update GPS Location by ID</a><br>
</td>
<td style="width: 421px;"> action="location" <br>
      <ol>
        <li>
id=11</li>
        <li>
x=100 </li>
        <li>
y=200</li>
      </ol>

<br>
</td>
</tr><tr>
      <td style="vertical-align: top;">POST<br>
      </td>
      <td style="vertical-align: top;"><a href="event?action=plus&amp;eid=11&amp;uid=polarlab@gmail.com">Create Plus</a><br>
      </td>
      <td style="vertical-align: top;">action="plus"<br>
      <ol>
        <li>eid = 11</li>
        <li>uid = polarlab@gmail.com</li>
      </ol>
      <br>
      </td>
    </tr>
    <tr>
      <td style="vertical-align: top;">GET<br>
      </td>
      <td style="vertical-align: top;"><a href="event?action=listplususer&amp;eid=11">List Event's Plus USER</a><br>
      </td>
      <td style="vertical-align: top;">action="listplususer"<br>
      <ol>
        <li>eid = 11<br>
        </li>
      </ol>
      </td>
    </tr>
    <tr>
      <td style="vertical-align: top;"><br>
      </td>
      <td style="vertical-align: top;"><br>
      </td>
      <td style="vertical-align: top;"><br>
      </td>
    </tr>

</tbody>
</table>

<br>

<br>

<br>

<br>

&nbsp;&nbsp;&nbsp; <br>

<br>

<br>

<br>

</body></html>